package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 *  工单信息
 * </p>
 *
 * @author zhouh
 * @since 2017-10-22
 */
@TableName("biz_work_notice")
public class WorkNotice extends Model<WorkNotice> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 部门id
     */
	private Integer deptid;
    /**
     * 订单id
     */
    @TableField("oid")
	private Integer oid;

	/**
	 * 订单号
	 */
	@TableField("order_no")
	private String orderNo;

    /**
     * 订单itemId
     */
	@TableField("item_id")
	private Integer itemId;
    /**
     * 客户姓名
     */
	@TableField("user_name")
	private String userName;
    /**
     * 用户电话
     */
	@TableField("user_phone")
	private String userPhone;
	private String address;
    /**
     * 工作类型[1-预埋管道   2-装机  3-清洗  4-换滤芯]
     */
	@TableField("work_Type")
	private Integer workType;
    /**
     * 安装人姓名
     */
	@TableField("setup_name")
	private String setupName;
    /**
     * 备注
     */
	private String remarks;
    /**
     * 创建日期
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 处理日期
     */
	@TableField("deal_time")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date dealTime;
    /**
     * 状态[1-待处理  0-已经处理]
     */
	private Integer status;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getDeptid() {
		return deptid;
	}

	public void setDeptid(Integer deptid) {
		this.deptid = deptid;
	}

	public Integer getOid() {
		return oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public Integer getItemId() {
		return itemId;
	}

	public void setItemId(Integer itemId) {
		this.itemId = itemId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getWorkType() {
		return workType;
	}

	public void setWorkType(Integer workType) {
		this.workType = workType;
	}

	public String getSetupName() {
		return setupName;
	}

	public void setSetupName(String setupName) {
		this.setupName = setupName;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getDealTime() {
		return dealTime;
	}

	public void setDealTime(Date dealTime) {
		this.dealTime = dealTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkNotice{" +
			"id=" + id +
			", deptid=" + deptid +
			", oid=" + oid +
			", itemId=" + itemId +
			", userName=" + userName +
			", userPhone=" + userPhone +
			", address=" + address +
			", workType=" + workType +
			", setupName=" + setupName +
			", remarks=" + remarks +
			", createTime=" + createTime +
			", dealTime=" + dealTime +
			", status=" + status +
			"}";
	}
}
